package org.supreme.starter.tools.config;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.supreme.starter.tools.properties.ToolsProperties;
import org.supreme.starter.tools.service.HelloWorld;

@Configuration
@EnableConfigurationProperties(value = {ToolsProperties.class})
public class ToolsAutoConfiguration {

    @Bean
    HelloWorld helloWorld() {
        final HelloWorld helloWorld = new HelloWorld();
        helloWorld.setTitle("hello");
        helloWorld.setContent("world");
        helloWorld.setPoint(9999);
        return helloWorld;
    }
}
